package vn.com.epi.re.data;

public class Pair implements Comparable<Pair> {

    private int id;
    private double score;
    
    public Pair() {
        
    }

    public Pair(int id, double score) {
        setId(id);
        setScore(score);
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public double getScore() {
        return score;
    }

    public void setScore(double score) {
        this.score = score;
    }

    @Override
    public int compareTo(Pair other) {
        if (this.getScore() == other.score)
            return 0;
        else
            return this.getScore() > other.score ? -1:1;
    }

}
